

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>修改角色表单</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all">
    <script src="../../static/js/jquery-3.6.0.min.js"></script>
</head>
<body>

<form id="myform" class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
    <!--  fi_id在页面中隐藏了，前端传递给后端也传递了fi_id值  -->
    <input type="hidden" name="role_id" id="role_id">
    <!--角色名称-->
    <div class="layui-form-item">
        <label class="layui-form-label required">角色名称</label>
        <div class="layui-input-inline">
            <input type="text" name="role_name" id="role_name" lay-verify="required" placeholder="请输入角色名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <!--是否启用-->
    <div class="layui-form-item">
        <label class="layui-form-label">是否启用</label>
        <div class="layui-input-inline">
            <input type="radio"   name="status"    value="0"  title="未启用"  checked>
            <input type="radio"   name="status"  value="1"   title="启用">
        </div>
    </div>

    <!--确认提交-->
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-back-submit" value="确认">
    </div>
</form>

<!--引入本地layui.js-->
<script src="../../static/layui/layui.js"></script>
<!--js-->
<script type="text/javascript">
    layui.config({
        base: '../../static/layui/layuiadmin/' //静态资源所在路径js
    }).extend({
        index: 'lib/index' //主入口模块
    }).use('index');
</script>
<!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的 -->
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;

    });
    //  var submitData=$('#layuiadmin-form-admin').serialize();
    //   console.log(submitData);
    $("#LAY-user-back-submit").on('click',function (){
        console.log(1111)

        /*       $.ajax({
                 url:"/finance_type/mod",
                 type:"get",
                 data:submitData,
                 dataType:"json",
                 success:function (res) {
                   if(res.code == 0){
                     layer.msg(res.msg, {
                       offset: '15px'
                       ,icon: 1
                       ,time: 1000
                     });
                   }
                   if(res.code == 500){
                     layer.msg(res.msg, {
                       offset: '15px'
                       ,icon: 1
                       ,time: 1000
                     });
                   }
                 }
               })*/
    })
</script>

</body>
</html>


</body>
</html>